const express = require('express');
const router = express.Router();
const ChatroomController = require('../controllers/chatroomController');

// 获取所有聊天室列表
router.get('/chatroom-list', ChatroomController.getAllChatrooms);

// 获取单个聊天室信息
router.get('/chatroom/:roomId', ChatroomController.getChatroomById);

// 获取聊天室歌曲列表
router.get('/chatroom/:roomId/songs', ChatroomController.getChatroomSongs);

// 添加歌曲到聊天室
router.post('/chatroom/:roomId/songs', ChatroomController.addSongToChatroom);

module.exports = router;